
<?php
require_once('../connections/connect.php');
//$action = $_POST['action'];
$branch_id = $_POST['BRANCH_ID'];

$action =  TRUE;
//$branch_id = "04";

if($action == "#zone_div"){
            mysql_select_db($database_connect, $connect);
            $query_subType = "SELECT * FROM DMA_list WHERE BRANCH='$branch_id' group by ZONE";
            $subType = mysql_query($query_subType, $connect) or die(mysql_error());		
            echo '<option value="" selected="selected" > ---- เลือก Zone ---- </option>';
            while($row_q = mysql_fetch_array($subType)){
              $id = $row_q["ZONE"];
              //$name = $row_q["zone_name"];
                echo"<option value='$id'>$id</option>";
              //echo "$id";

            };
}
?>

